POV-Ray : Newsgroups : povray.newusers : Color of a point : Re: Color of a point Server Time
29 Jul 2024 20:23:30 EDT (-0400)
  Re: Color of a point  
From: Marc Jacquier
Date: 25 Feb 2005 11:09:46
Message: <421f4dca$1@news.povray.org>

news:421f48ae@news.povray.org...
> Hallo!
> I'm writing a simple macro in order to cover of scales an object, and my
> purpose is to assign to each scale the color of the surface of the object
in
> the point of tangency with the scale itself.
> The question is...
> ...is possible to determinate the color of a point of given coordinates in
> POV-Ray?
>
> Thank you in advance,
> ;-)
> Paolo
>
>
try
eval_pigment(Pigm, Vect)
"Pigm" being your predeclared pigment  and "Vect" being coordinates of the
point you are testing (beware object tranformations)


Marc


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.